package com.example.leetcode.array;

import com.example.leetcode.array.common.ArrayUtils;

import java.util.Arrays;

class Solution350 {
    public int[] intersect(int[] nums1, int[] nums2) {
        return ArrayUtils.intersect(nums1, nums2);
    }
}

public class leetcode350 {
    public static void main(String[] args) {
        Solution350 solution350 = new Solution350();
        int[] nums1 = {1,2,2,1};
        int[] nums2 = {2,2};
        System.out.println(Arrays.toString(solution350.intersect(nums1, nums2)));
    }
}
